#include <stdio.h>

int * swap (int *x,int*y);
int * swap (int *x,int*y)
{
    int temp;
    temp = *x; 
    *x = *y;
    *y = temp;
    return x;
    return y;
}	
int main(void)
{
   int x,y;
   int *p1 = &x;
   int *p2 = &y;
   printf("x=");
   scanf("%d",&x);
   getchar();	   
   printf("y=");
   scanf("%d",&y);
   swap(p1,p2);
   getchar();	   
   printf("x=%d,y=%d\n",x,y);

    return 0;
}
	
